/* ===========================
   GLOBAL STYLING
=========================== */
/* Grundinställningar */

body {
    background-color: rgb(10, 10, 10);
    color: white;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header och logo */
header {
    position: relative; /* container for absolute-positioned toggle */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgb(0, 54, 105);
    background-image: linear-gradient(to bottom, transparent, rgb(10, 10, 10));
}


/* Logo */
.site-logo {
    height: 200px;
    width: auto;
}

/* Hamburger button */
.menu-toggle {
    display: none; /* hidden on wide screens */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1200;
    flex-direction: column;
    justify-content: space-between;
    /* keep button only as big as bars + padding */
    position: absolute;
    top: 12px;
    right: 20px;
}

.menu-toggle:focus {
    outline: 2px solid #ff32a0;
}
.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 4px 0;
}

/* Navigation menu */
.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.top-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.top-menu a:hover,
.top-menu a:focus {
    text-decoration: underline;
}

/* Nav header for title and social icons */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 8px;
    align-items: center; /* vertically center icons within container */
}

@media screen and (max-width: 600px) {
    .nav-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.discord-button {
    display: inline-block;
    padding: 0;
    text-decoration: none;
}

.discord-button img {
    height: 50px;
    width: auto;
    display: block;
}

/* hover effect optional, reduce opacity */
.discord-button:hover img {
    opacity: 0.8;
}

.insta-button {
    display: inline-block;
    padding: 0;
    text-decoration: none;
    /* lift the smaller Instagram icon closer to Discord */
        margin-top: 5px;
    align-self: flex-start;
}

.insta-button img {
    height: 40px; /* smaller than Discord */
    width: auto;
    display: block;
}

/* hover effect optional, reduce opacity */
.insta-button:hover img {
    opacity: 0.8;
}

/* Ensure top menu stays above other elements */
.top-menu {
    z-index: 1100;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media screen and (max-width: 600px) {

    /* Hamburger visible */
    .menu-toggle {
        display: inline-flex !important;
    }

    /* Stack header items vertically */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 8px;
    }

    /* Collapse top menu (mobile) - dropdown anchored under the burger */
    .top-menu {
        position: absolute;
        display: none;
        right: 20px;
        top: 50px; /* roughly toggle bottom (12px + 30px) */
        background: rgba(0,0,0,0.85);
        border-radius: 6px;
        padding: 8px 12px;
        width: auto;
        min-width: 120px;
        box-sizing: border-box;
        z-index: 1100;
    }

    .top-menu.open {
        display: block;
    }

    .top-menu ul {
        flex-direction: column;
        gap: 8px;
    }

    /* Logo resizing */
    .site-logo {
        height: 100px;
        max-height: 12vh;
    }
}



/* ===========================
   ADMIN MODAL
=========================== */
.admin-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background-color: #1a1a1a;
    padding: 30px;
    border: 2px solid aqua;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    color: white;
}

.admin-modal-content h2 {
    margin-top: 0;
    color: aqua;
}

.admin-modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid aqua;
    border-radius: 4px;
    background: #222;
    color: white;
    box-sizing: border-box;
}

.admin-modal-content button {
    background-color: aqua;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.admin-modal-content button:hover {
    background-color: #00e0e0;
}

.close {
    color: aqua;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #00e0e0;
}
/* ===========================
   CONTENT AREA
=========================== */
.content {
    max-width: 960px;
    color: white;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
}

/* ===========================
   COUNTDOWN
=========================== */
.countdown-container {
    /* make countdown area flexible and centered in header */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0 0 0; /* space below logo if necessary */
    margin-left: 120px; /* space to the left of countdown */
}

.countdown-title {
    color: #ff32a0;
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    text-shadow: 
        0 0 4px rgba(255, 119, 192, 0.4),
        0 0 8px rgba(255, 119, 192, 0.3),
        0 0 12px rgba(255, 119, 192, 0.2);
    margin: 8px 0 0 0;
}

#countdown {
    font-size: 40px;
    font-weight: bold;
    color: #ff32a0;
    text-shadow:
        0 0 4px rgba(255, 62, 165, 0.4),
        0 0 8px rgba(255, 119, 192, 0.3),
        0 0 12px rgba(255, 119, 192, 0.2);
    background: transparent;
    border-radius: 15px;
    display: inline-block;
    letter-spacing: 3px;
    margin: 4px 0 0 0;
}

.footer {
    background-color: rgba(0, 54, 105, 0.5);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* ===========================
   COOKIE CONSENT
=========================== */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-banner.show {
    display: flex;
}

.cookie-container {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    border: 2px solid #ff32a0;
    box-shadow: 0 0 20px rgba(255, 50, 160, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text h3 {
    margin-top: 0;
    color: #ff32a0;
}

.cookie-text p {
    margin: 5px 0;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cookie-accept {
    background-color: #ff32a0;
    color: white;
}

.cookie-accept:hover {
    background-color: #ff5ab5;
}

.cookie-reject {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.cookie-settings {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-settings:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #ff32a0;
}

.cookie-modal-content h2 {
    color: #ff32a0;
    margin-top: 0;
}

.cookie-option {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
}

.cookie-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.cookie-option p {
    margin: 8px 0 0 28px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cookie-modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-save {
    background-color: #ff32a0;
    color: white;
}

.cookie-save:hover {
    background-color: #ff5ab5;
}

.cookie-cancel {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.cookie-cancel:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 700px) {
    .cookie-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cookie-modal-content {
        margin: 20px;
        max-width: none;
    }
}